/**
 * 
 */
package galacticthrone.empire;

import java.awt.Color;

import javax.media.opengl.GL;

// TODO Javadoc
/**
 * 
 *
 * @author Jaco van der Westhuizen
 */
public class EmpireColor
{
	final float[] flag;
	private final Color flagColor;
	final float[] paint;

	// TODO Metal, fume, shield etc.
	public EmpireColor(float[] flag, float[] paint)
	{
		this.flag  = new float[] {flag[0],  flag[1],  flag[2],  1.0f};
		this.paint = new float[] {paint[0], paint[1], paint[2], 1.0f};
		
		this.flagColor = new Color(flag[0],  flag[1],  flag[2]);
	}

	public void setVertexColorToFlagColor(GL gl)
	{
		gl.glColor4fv(flag, 0);
	}

	public void setVertexColorToPaintColor(GL gl)
	{
		gl.glColor4fv(paint, 0);
	}
	
	public Color getFlagColor()
	{
		return flagColor;
	}
}
